<?php
namespace app\common\service;

use think\Page;
use app\common\logic\wechat\WechatUtil;
use think\facade\Db;

class GetConfig extends Base {
    static $AUTH_CHECK = false; //默认必须登录

    public function index(){

        $data = [
            'group_qrcode' => tpCache('shop_info.group_qrcode'),
            'wx_qrcode' => tpCache('shop_info.wx_qrcode'),
            //'shop_img' => tpCache('shop_info.shop_img'),
            'web_name' => tpCache('shop_info.store_name'),
            'phone' => tpCache('shop_info.phone'),
            'web_desc' => tpCache('shop_info.store_desc'),
            'web_logo' => tpCache('shop_info.web_logo')
        ];
        //$shop_content =  Db::name('shop')->where('id=1')->value('content');
        //$data['shop_img'] = html_entity_decode($shop_content);
        $result = [
            'status' => true,
            'msg' => '',
            'data' => $data,
        ];
        return $result;
//        return json_encode($result);
    }


}
